import request from "@/utils/request";
import { Result, UserDto } from "@/types/common";

export function getUserListApi() {
  return request({
    url: "/user/list",
    method: "get",
  });
}

export function userLoginApi(params: UserDto): Promise<Result> {
  return request({
    url: "/user/login",
    method: "post",
    data: params,
  });
}

export function userLogoutApi(): Promise<Result> {
  return request({
    url: "/user/logout",
    method: "post",
  });
}
